home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / answers / cryptography-faq / part07 < prev    next >
Encoding:
Internet Message Format  |  1993-06-18  |  4.4 KB

  1. Path: senator-bedfellow.mit.edu!enterpoop.mit.edu!pad-thai.aktis.com!pad-thai.aktis.com!not-for-mail
  2. From: crypt-comments@math.ncsu.edu
  3. Newsgroups: sci.crypt,sci.answers,news.answers
  4. Subject: Cryptography FAQ (07/10: Digital Signatures; last mod 19930504)
  5. Supersedes: <cryptography-faq/part07_738648006@GZA.COM>
  6. Followup-To: poster
  7. Date: 19 Jun 1993 00:00:29 -0400
  8. Organization: The Crypt Cabal
  9. Lines: 82
  10. Sender: faqserv@GZA.COM
  11. Approved: news-answers-request@MIT.Edu
  12. Expires: 24 Jul 1993 04:00:05 GMT
  13. Message-ID: <cryptography-faq/part07_740462405@GZA.COM>
  14. References: <cryptography-faq/part01_740462405@GZA.COM>
  15. Reply-To: crypt-comments@math.ncsu.edu
  16. NNTP-Posting-Host: pad-thai.aktis.com
  17. X-Last-Updated: 1993/05/06
  18. Xref: senator-bedfellow.mit.edu sci.crypt:17445 sci.answers:262 news.answers:9558
  19.  
  20. Archive-name: cryptography-faq/part07
  21.  
  22.  
  23. This is the seventh of ten parts of the sci.crypt FAQ. The parts are
  24. mostly independent, but you should read the first part before the rest.
  25. We don't have the time to send out missing parts by mail, so don't ask.
  26. Notes such as ``[KAH67]'' refer to the reference list in the last part.
  27.  
  28. The sections of this FAQ are available via anonymous FTP to rtfm.mit.edu 
  29. as /pub/usenet/news.answers/cryptography-faq/part[xx]. The Cryptography 
  30. FAQ is posted to the newsgroups sci.crypt, sci.answers, and news.answers
  31. every 21 days.
  32.  
  33.  
  34. Contents:
  35.  
  36. 7.1. What is a one-way hash function?
  37. 7.2. What is the difference between public, private, secret, shared, etc.?
  38. 7.3. What are MD4 and MD5?
  39. 7.4. What is Snefru?
  40.  
  41.  
  42. 7.1. What is a one-way hash function?
  43.  
  44.   A typical one-way hash function takes a variable-length message and
  45.   produces a fixed-length hash. Given the hash it is computationally
  46.   impossible to find a message with that hash; in fact one can't
  47.   determine any usable information about a message with that hash, not
  48.   even a single bit. For some one-way hash functions it's also
  49.   computationally impossible to determine two messages which produce the
  50.   same hash.
  51.  
  52.   A one-way hash function can be private or public, just like an
  53.   encryption function. Here's one application of a public one-way hash
  54.   function, like MD5 or Snefru. Most public-key signature systems are
  55.   relatively slow. To sign a long message may take longer than the user
  56.   is willing to wait. Solution: Compute the one-way hash of the message,
  57.   and sign the hash, which is short. Now anyone who wants to verify the
  58.   signature can do the same thing.
  59.  
  60.   Another name for one-way hash function is message digest function.
  61.  
  62. 7.2. What is the difference between public, private, secret, shared, etc.?
  63.  
  64.   There is a horrendous mishmash of terminology in the literature for a
  65.   very small set of concepts. Here are the concepts: (1) When an
  66.   algorithm depends on a key which isn't published, we call it a private
  67.   algorithm; otherwise we call it a public algorithm. (2) We have
  68.   encryption functions E and decryption functions D, so that D(E(M)) = M
  69.   for any message M. (3) We also have hashing functions H and
  70.   verification functions V, such that V(M,X) = 1 if and only if X = H(M).
  71.  
  72.   A public-key cryptosystem has public encryption and private
  73.   decryption. Checksums, such as the application mentioned in the
  74.   previous question, have public hashing and public verification.
  75.   Digital signature functions have private hashing and public
  76.   verification: only one person can produce the hash for a message,
  77.   but everyone can verify that the hash is correct.
  78.  
  79.   Obviously, when an algorithm depends on a private key, it's meant to
  80.   be unusable by anyone who doesn't have the key. There's no real
  81.   difference between a ``shared'' key and a private key: a shared key
  82.   isn't published, so it's private. If you encrypt data for a friend
  83.   rather than ``for your eyes only'', are you suddenly doing
  84.   ``shared-key encryption'' rather than private-key encryption? No.
  85.  
  86. 7.3. What are MD4 and MD5?
  87.  
  88.   MD4 and MD5 are message digest functions developed by Ron Rivest.
  89.   Definitions appear in RFC 1320 and RFC 1321 (see part 10). Code is
  90.   available from [FTPMD].
  91.  
  92.   Note that a transcription error was found in the original MD5 draft
  93.   RFC. The corrected algorithm should be called MD5a, though some
  94.   people refer to it as MD5.
  95.  
  96. 7.4. What is Snefru?
  97.  
  98.   Snefru is a family of message digest functions developed by Ralph
  99.   Merkle. Snefru-8 is an 8-round function, the newest in the family.
  100.   Definitions appear in Merkle's paper [ME91a]. Code is available from
  101.   [FTPSF].
  102.